package cm.hyb.homeWork02;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Company {
	@Autowired
	private Driver driver;
	
	@Autowired
	private Manager manager;
	
	public Driver getDriver() {
		return driver;
	}
	public void setDriver(Driver driver) {
		this.driver = driver;
	}
	public Manager getManager() {
		return manager;
	}
	public void setManager(Manager manager) {
		this.manager = manager;
	}
	public Company(){
		
	}
	@Override
	public String toString() {
		return "Company [driver=" + driver + ", manager=" + manager + "]";
	}
}
